package battleship;

import javax.swing.JLabel;

class Ships extends JLabel{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int x;
	private int y;
	private int length;
	private int direction;  // 0 - poziom, 1 pion
	private int ID;
	
	public Ships(){

	}
	public void enterValues(int x, int y, int id){
		this.x = x;
		this.y = y;
		this.ID = id;
	}
	
	public void enterValues(int x, int y, int len, int dir, int id){
		this.x = x;
		this.y = y;
		this.length = len;
		this.direction = dir;
		this.ID = id;
	}
	
	public int returnX(){
		return this.x;
	}
	public int returnY(){
		return this.y;
	}
	public int returnLen(){
		return this.length;
	}
	public int returnDir(){
		return this.direction;
	}
	public int returnID(){
		return this.ID;
	}
	
	public void setDir(int dir){
		this.direction = dir;
	}
	public void setCord(int x, int y){
		this.x = x;
		this.y = y;
	}
	
}